﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ToolRental.Model
{
    [Table("Tools")]
    public class Tool
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required]
        [Display(Name = "Raktári szám")]
        public string StockNumber { get; set; }

        [Required]
        [Display(Name = "Eszköz")]
        public int ToolTypeId { get; set; }
        public virtual ToolType Type { get; set; }
    }
}
